package com.dream.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 用户卷
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name="sys_user_testpaper")
public class Sys_User_TestPaper extends AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private SysUser sysUser; //卷用户
	private Sys_TestPaper sys_TestPaper;//哪张卷
	private Long pValue;//得分
	private Long complateTime; //完成时间
	private String complateTimeShow;//完成时间显示
	private Long tstartTime;//开始时间
	private String tendTimeSHow;//开始时间显示
	private String state="0";//0未完成，1表示 完成 
	private String icCheck="0";//是不是已经批改，0未批改，1已经批改 
	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public SysUser getSysUser()
	{
		return sysUser;
	}

	public void setSysUser(SysUser sysUser)
	{
		this.sysUser = sysUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_TestPaper getSys_TestPaper()
	{
		return sys_TestPaper;
	}

	public void setSys_TestPaper(Sys_TestPaper sys_TestPaper)
	{
		this.sys_TestPaper = sys_TestPaper;
	}

	public Long getpValue()
	{
		return pValue;
	}

	public void setpValue(Long pValue)
	{
		this.pValue = pValue;
	}

	public Long getComplateTime()
	{
		return complateTime;
	}

	public void setComplateTime(Long complateTime)
	{
		this.complateTime = complateTime;
	}

	public String getComplateTimeShow()
	{
		return complateTimeShow;
	}

	public void setComplateTimeShow(String complateTimeShow)
	{
		this.complateTimeShow = complateTimeShow;
	}

	public Long getTstartTime()
	{
		return tstartTime;
	}

	public void setTstartTime(Long tstartTime)
	{
		this.tstartTime = tstartTime;
	}

	public String getTendTimeSHow()
	{
		return tendTimeSHow;
	}

	public void setTendTimeSHow(String tendTimeSHow)
	{
		this.tendTimeSHow = tendTimeSHow;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIcCheck() {
		return icCheck;
	}

	public void setIcCheck(String icCheck) {
		this.icCheck = icCheck;
	}
	

}
